/*
*************************************************************************
*西瑞克斯研发管理系统
*版 本: 1.0   
*日 期：02/25/2012    
*作 者： 王浩 QQ：873987060   
*************************************************************************   
*/  

package com.application.yfprojectteams.struts.form;
import org.apache.commons.lang.builder.ReflectionToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;
import javax.servlet.http.HttpServletRequest;
import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionMapping;
import java.util.List;
import com.manager.commons.StringUtil;
import com.application.yfprojectteams.entity.YfProjectTeams;
import java.util.Date;
 /**
 * 
 * Description: YfProjectTeamsForm Struts Action Form<br />
 * 
 * Version:V0.1<br />
 * 
 * Author: 王浩 QQ：873987060 <br />
 * 
 * History: <br />
 * 
 * 02/25/2012 .
 * 
 */
public class  YfProjectTeamsForm extends ActionForm
{

	/** serialVersionUID */
	protected static final long serialVersionUID = -1L;
	
	public YfProjectTeamsForm(){
  
	}

		      
	private String id;
        
        	      
	private String projectNo;
        
        	      
	private String userId;
        
        	      
	private String userName;
        
        	      
	private String userLevel;
        
        	      
	private String org;
        
        	      
	private String approveId;
        
        	      
	private String operateid;
        
        	      
	private Date createDate;
        
        
        private String ids;

        private Integer ordernum;
	                                        
	                                                                                                                                        	private String createDateStr;
                        
	
         	         	         	         	         	         	         	         	         	 	/**
	 * @return Returns the CreateDate.
	 */
	public String getCreateDateStr(){
	        String re = "";
		if(this.createDate == null) {
			return re;
		}
		try {
			re = StringUtil.dateToString(this.createDate);
		}
		catch(Exception e) {
			e.printStackTrace();
		}
		return re;
	}
	

	/**
	 * @param ${field.propertyName} Set the ${field.propertyName}.
	 */	
	public void setCreateDateStr(String createDateStr){
		this.createDateStr = createDateStr;
		if(this.createDateStr != null && !"".equals(this.createDateStr)) {
			try {
				this.createDate = StringUtil.stringToDate(this.createDateStr);
			}
			catch(Exception e) {
				e.printStackTrace();
			}
		}

	}
                

        	/**
	 * @return Returns the Id
	 */
	public String getId(){
		return this.id;
	}
	

	/**
	 * @param id Set the id.
	 */	
	public void setId(String id){
		this.id = id;
	}
	
        	/**
	 * @return Returns the ProjectNo
	 */
	public String getProjectNo(){
		return this.projectNo;
	}
	

	/**
	 * @param projectNo Set the projectNo.
	 */	
	public void setProjectNo(String projectNo){
		this.projectNo = projectNo;
	}
	
        	/**
	 * @return Returns the UserId
	 */
	public String getUserId(){
		return this.userId;
	}
	

	/**
	 * @param userId Set the userId.
	 */	
	public void setUserId(String userId){
		this.userId = userId;
	}
	
        	/**
	 * @return Returns the UserName
	 */
	public String getUserName(){
		return this.userName;
	}
	

	/**
	 * @param userName Set the userName.
	 */	
	public void setUserName(String userName){
		this.userName = userName;
	}
	
        	/**
	 * @return Returns the UserLevel
	 */
	public String getUserLevel(){
		return this.userLevel;
	}
	

	/**
	 * @param userLevel Set the userLevel.
	 */	
	public void setUserLevel(String userLevel){
		this.userLevel = userLevel;
	}
	
        	/**
	 * @return Returns the Org
	 */
	public String getOrg(){
		return this.org;
	}
	

	/**
	 * @param org Set the org.
	 */	
	public void setOrg(String org){
		this.org = org;
	}
	
        	/**
	 * @return Returns the ApproveId
	 */
	public String getApproveId(){
		return this.approveId;
	}
	

	/**
	 * @param approveId Set the approveId.
	 */	
	public void setApproveId(String approveId){
		this.approveId = approveId;
	}
	
        	/**
	 * @return Returns the Operateid
	 */
	public String getOperateid(){
		return this.operateid;
	}
	

	/**
	 * @param operateid Set the operateid.
	 */	
	public void setOperateid(String operateid){
		this.operateid = operateid;
	}
	
        	/**
	 * @return Returns the CreateDate
	 */
	public Date getCreateDate(){
		return this.createDate;
	}
	

	/**
	 * @param createDate Set the createDate.
	 */	
	public void setCreateDate(Date createDate){
		this.createDate = createDate;
	}
	
                
        
	                                

	private List<YfProjectTeams> yfProjectTeamsList;

       /**
	 * @return the yfprojectteamsformList
	 */
	public List<YfProjectTeams> getYfProjectTeamsList() {
		return yfProjectTeamsList;
	}

	/**
	 * @param yfProjectTeamsList the yfprojectteamsformList to set
	 */
	public void setYfProjectTeamsList(List<YfProjectTeams> yfProjectTeamsList) {
		this.yfProjectTeamsList = yfProjectTeamsList;
	}
        
	public String getIds() {
		return ids;
	}

	public void setIds(String ids) {
		this.ids = ids;
	}

	/** 
	 * Method validate
	 * @param mapping
	 * @param request
	 * @return ActionErrors
	 */
	public ActionErrors validate(ActionMapping mapping,
			HttpServletRequest request) {
		// TODO Auto-generated method stub
		return null;
	}

	/** 
	 * Method reset
	 * @param mapping
	 * @param request
	 */
	public void reset(ActionMapping mapping, HttpServletRequest request) {
		// TODO Auto-generated method stub
	}

        public String toString(){
		return ReflectionToStringBuilder.toString(this,ToStringStyle.MULTI_LINE_STYLE);
	}


		public Integer getOrdernum() {
			return ordernum;
		}


		public void setOrdernum(Integer ordernum) {
			this.ordernum = ordernum;
		}
}
